package com.siwei.mes.entity.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 品控系统参数(SystemParam)实体类
 *
 * @author linzi
 * @since 2024-09-18 17:24:11
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_system_param")
@ApiModel(value = "SystemParam", description = "品控系统参数")
public class SystemParam implements Serializable {
    private static final long serialVersionUID = 962669731359336066L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "品控系统参数主键ID", name = "id")
    private Long id;
    /**
     * 系统参数code
     */
    @Column(name = "system_code")
    @ApiModelProperty(value = "系统参数code", name = "systemCode")
    private String systemCode;
    /**
     * 系统参数名称
     */
    @Column(name = "system_name")
    @ApiModelProperty(value = "系统参数名称", name = "systemName")
    private String systemName;
    /**
     * 系统参数值
     */
    @Column(name = "system_value")
    @ApiModelProperty(value = "系统参数值", name = "systemValue")
    private String systemValue;
    /**
     * 系统参数描述
     */
    @Column(name = "system_desc")
    @ApiModelProperty(value = "系统参数描述", name = "systemDesc")
    private String systemDesc;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    @Transient
    @ApiModelProperty(value = "多个系统参数")
    private List<SystemParam> systemParamList;
}
